package com.spnice.sgsms.enums;

public enum ResultEnum {
    SUCCESS(1, "成功"),
    UNKNOWN_ERROR(-1, "未知错误"),
    ERROR(-2, "服务端异常"),
    URL_UNKNOWN(-3, "未知的url"),
    TOKEN_INVALID(-4, "token失效"),
    UNAUTHORIZED(-5, "未验证"),
    LOGIN_FAILED(-6, "登录失败"),
    ARGS_ERROR(-7, "参数错误"),
    REF_ERROR(-8, "关联的属性不存在"),
    FILE_ANALYSIS_ERROR(-9, "文件解析异常"),
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
